package com.finance.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @Author: Apollo
 * @Date: 2021/4/10
 * @Description: 投资规则
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "rules_investment")
public class RulesInvestment implements Serializable {

    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 商业模式 1:自营贷 2:联合贷
     */
    private Integer model;

    /**
     * 投资比例
     */
    private Integer investmentProportions;

    /**
     * 收益比例
     */
    private Integer earningsRatios;

    /**
     * 放款时间 1:及时放款 2:24小时内
     */
    private Integer loanTime;

    /**
     * 贷款产品标识
     */
    private String loanProductCode;







    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_MODEL = "model";

    public static final String COL_INVESTMENT_PROPORTIONS = "investment_proportions";

    public static final String COL_EARNINGS_RATIOS = "earnings_ratios";

    public static final String COL_LOAN_TIME = "loan_time";

    public static final String COL_LOAN_PRODUCT_CODE = "loan_product_code";

}